<?php 
// session_start();
require_once './../vendor/autoload.php';

require '../helpers.php';

use Framework\Router;
use Framework\Session;

Session::start();

// sql_autoload_register(function($class){
//     $path = basePath('Framework/' . $class . '.php');
//     if (file_exists($path)) {
//         require $path;
//     }
// });

$router = new Router();

$routes = require basePath('routes.php');

$uri = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH);

$router->route($uri);
?>